﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeftMenuUpdate.aspx.cs"
    Inherits="demo.Pages.LeftMenuUpdate" %>

<%@ Register Assembly="Water" Namespace="Water.Web.Controls" TagPrefix="page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <page:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="demo.Objects.BLL.Menu"
            SelectMethod="FindToDataReader" CanSelect="true" CanUpdate="true" CanInsert="true" CanDelete="true">
            <SelectParameters>
                <asp:QueryStringParameter Name="menuid" Type="Int32" QueryStringField="menu_id" Direction="Input" />
            </SelectParameters>
        </page:ObjectDataSource>
        
        <page:Container ID="Container1" runat="server" DataSourceID="ObjectDataSource1" DisplayBorder="false"
            PackageType="Div" TitleTextPrompt="menu.menumaintain" DataKeyNames="menuid"  IsCallBack="false">
            <ItemTemplate>
                <page:Layout ID="Layout1" runat="server" Prompt="menu.text">
                    <page:Literal ID="Literal9" runat="server" Text='<%# Bind("menuid")%>' Visible="false"></page:Literal>
                    <page:Literal ID="Literal1" runat="server" Text='<%# Eval("text")%>' ></page:Literal>
                </page:Layout>
                <page:Literal ID="Literal2" runat="server" Text='<%# Eval("navigateUrl")%>' Prompt="menu.navigateurl"></page:Literal>
                <page:Literal ID="Literal3" runat="server" Text='<%# Eval("imageUrl")%>' Prompt="menu.imageUrl"></page:Literal>
                <page:Literal ID="Literal4" runat="server" Text='<%# Eval("toolTip")%>' Prompt="menu.toolTip"></page:Literal>
                <page:Literal ID="Literal5" runat="server" Text='<%# Eval("imageToolTip")%>' Prompt="menu.imageToolTip"></page:Literal>
                <page:Literal ID="Literal6" runat="server" Text='<%# Eval("target")%>' Prompt="menu.target"></page:Literal>
                <page:Literal ID="Literal7" runat="server" Text='<%# Eval("parentname")%>' Prompt="menu.parentid"></page:Literal>
                <page:Literal ID="Literal8" runat="server" Text='<%# Eval("ordernum")%>' Prompt="menu.ordernum"></page:Literal>
            </ItemTemplate>
            <EditTemplate>
                <page:Layout ID="Layout1" runat="server" Prompt="menu.text">
                    <page:TextBox ID="TextBox1" runat="server" Text='<%# Bind("text")%>'></page:TextBox>
                    <page:Literal ID="Literal9" runat="server" Text='<%# Bind("menuid")%>' Visible="false"></page:Literal>
                </page:Layout>
                <page:TextBox ID="TextBox2" runat="server" Text='<%# Bind("navigateUrl")%>' Prompt="menu.navigateurl"></page:TextBox>
                <page:TextBox ID="TextBox3" runat="server" Text='<%# Bind("imageUrl")%>' Prompt="menu.imageurl"></page:TextBox>
                <page:TextBox ID="TextBox4" runat="server" Text='<%# Bind("toolTip")%>' Prompt="menu.tooltip"></page:TextBox>
                <page:TextBox ID="TextBox5" runat="server" Text='<%# Bind("imageToolTip")%>' Prompt="menu.imagetooltip"></page:TextBox>
                <page:TextBox ID="TextBox6" runat="server" Text='<%# Bind("target")%>' Prompt="menu.target"></page:TextBox>
                <page:SearchBox ID="SearchBox1" runat="server" Text='<%#Eval("parentname") %>' Value='<%#Bind("parentid") %>' Prompt="menu.parentid" DialogId="Dialog1"></page:SearchBox>
                <page:TextBox ID="TextBox8" runat="server" Text='<%# Bind("ordernum")%>' Prompt="menu.ordernum"></page:TextBox>
            </EditTemplate>
            <InsertTemplate>
                <page:TextBox ID="TextBox1" runat="server" Text='<%# Bind("text")%>' Prompt="menu.text"></page:TextBox>
                <page:TextBox ID="TextBox2" runat="server" Text='<%# Bind("navigateUrl")%>' Prompt="menu.navigateurl"></page:TextBox>
                <page:TextBox ID="TextBox3" runat="server" Text='<%# Bind("imageUrl")%>' Prompt="menu.imageurl"></page:TextBox>
                <page:TextBox ID="TextBox4" runat="server" Text='<%# Bind("toolTip")%>' Prompt="menu.tooltip"></page:TextBox>
                <page:TextBox ID="TextBox5" runat="server" Text='<%# Bind("imageToolTip")%>' Prompt="menu.imagetooltip"></page:TextBox>
                <page:TextBox ID="TextBox6" runat="server" Text='<%# Bind("target")%>' Prompt="menu.target"></page:TextBox>
                <page:SearchBox ID="SearchBox1" runat="server" Text='<%#Eval("parentname") %>' Value='<%#Bind("parentid") %>' Prompt="menu.parentid" DialogId="Dialog1"></page:SearchBox>
                <page:TextBox ID="TextBox8" runat="server" Text='<%# Bind("ordernum")%>' Prompt="menu.ordernum"></page:TextBox>
            </InsertTemplate>
            <FooterTemplate>
                <page:Layout ID="layout11" runat="server" >
                    <page:SuperButton ID="edit" runat="server" CommandName="Edit" Prompt="sys.edit" ButtonDefaultMode="Button" IsCallBack="false" />
                    <page:SuperButton ID="update" runat="server" CommandName="Update" Prompt="sys.update" ButtonDefaultMode="Button"  IsCallBack="false"/>
                    <page:SuperButton ID="new" runat="server" CommandName="New" Prompt="sys.new" ButtonDefaultMode="Button" IsCallBack="false"/>
                    <page:SuperButton ID="insert" runat="server" CommandName="Insert" Prompt="sys.insert" ButtonDefaultMode="Button" IsCallBack="false"/>
                    <page:SuperButton ID="delete" runat="server" CommandName="Delete" Prompt="sys.delete" ButtonDefaultMode="Button" IsCallBack="false"/>
                    <page:SuperButton ID="cancel" runat="server" CommandName="Cancel" Prompt="sys.cancel" ButtonDefaultMode="Button" IsCallBack="false"/>
                </page:Layout>
            </FooterTemplate>
        </page:Container>
        
        <page:Dialog ID="Dialog1" runat="server" Src="LeftMenuSelector.aspx" Promptable="false" Width="300" Height="500" >
        </page:Dialog>

    </div>
    </form>

    <script>
        $Page.AjaxDebug = true;
    </script>

</body>
</html>
